package net.lab1024.sa.admin.module.business.address.dao;

import java.util.List;
import net.lab1024.sa.admin.module.business.address.domain.entity.AddressEntity;
import net.lab1024.sa.admin.module.business.address.domain.form.AddressQueryForm;
import net.lab1024.sa.admin.module.business.address.domain.vo.AddressVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 全景图地点添加 Dao
 *
 * @Author 骆伟林
 * @Date 2025-10-23 14:52:49
 * @Copyright 软件需求工程第八组
 */

@Mapper
public interface AddressDao extends BaseMapper<AddressEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<AddressVO> queryPage(Page page, @Param("queryForm") AddressQueryForm queryForm);

    /**
     * 更新删除状态
     */
    long updateDeleted(@Param("addressId")Long addressId,@Param("deletedFlag")boolean deletedFlag);

    /**
     * 批量更新删除状态
     */
    void batchUpdateDeleted(@Param("idList")List<Long> idList,@Param("deletedFlag")boolean deletedFlag);

}
